package com.ascentive.finallyfast.deepclean;

import com.ascentive.finallyfast.FinallyFastApplication;

public class SmsLog extends DeepCleanListItem {

	int noOfMessagesDeleted = 0;
	public SmsLog(FinallyFastApplication app, String name, boolean value, int img) {
		super(app, name, value, img);

	}
	
	void doClean()
	{
		
	}

//	@Override
//	void doClean() {
//		
//		int smsDeleteStatus = 0;
//		 
//		// URI for sms
//        Uri uriSmsInbox = Uri.parse("content://sms/inbox");
//        	
//        ContentResolver cr = mApp.getContentResolver();
//        Cursor smsCursor = cr.query(uriSmsInbox, new String[] { "thread_id" },
//       		 "date <= (" + Utility.getDateBeforeNDays(mApp.getTargetDateDuration() ) +")", null, null);
//        
//        // if Sent data is Empty
//        int count = smsCursor.getCount();
//        if(smsCursor.getCount() == 0) 
//        	return;
//        
//        try {
//            Set<String> threads = new HashSet<String>();
//
//            while (smsCursor.moveToNext()) {
//                threads.add(smsCursor.getString(0));
//            }
//
//            for (String thread : threads) {
//                // Delete the SMS threads
//                String uri = "content://sms/conversations/" + thread;
//                smsDeleteStatus = cr.delete(Uri.parse(uri), null, null);
//                noOfMessagesDeleted += smsDeleteStatus; 
//            }
//        } catch (Exception e) {
//            Log.e("LOG_TAG", "exception in deleteSms:", e);
//           
//        }
//		return;
//	}

	@Override
	int numberOfFileCleaned() {
		// TODO Auto-generated method stub
		return -1;
	}

}
